/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2022-11-22 18:40:17
 * @LastEditors: Andy
 * @LastEditTime: 2023-03-27 16:15:35
 */
const parentRouter = [
  {
    label: '组织管理',
    path: ''
  }
]
const Post = () => import('../views/Post.vue')
const Department = () => import('../views/Department.vue')
const Organization = () => import('../views/Organization.vue')
const Rank = () => import('../views/Rank.vue')
const routes = [
  {
    path: '/organization/post',
    name: 'Post',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '岗位管理',
      keepAlive: true,
      parentTitle: parentRouter
    },
    component: Post
  },
  {
    path: '/organization/department',
    name: 'Department',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '部门管理',
      keepAlive: true,
      parentTitle: parentRouter
    },
    component: Department
  },
  {
    path: '/organization/structure',
    name: 'Organization',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '组织管理',
      keepAlive: true,
      parentTitle: parentRouter
    },
    component: Organization
  },
  {
    path: '/organization/rank',
    name: 'Rank',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '职级管理',
      keepAlive: true,
      parentTitle: parentRouter
    },
    component: Rank
  }
  // {
  //   path: '/organization/procurementTeam',
  //   name: 'procurementTeam',
  //   meta: {
  //     icon: 'icon-renyuanguanli',
  //     title: '采购组管理',
  //     keepAlive: true,
  //     parentTitle: parentRouter
  //   },
  //   component: () => import('/projects/main/src/modules/organization/views/procurementTeam.vue')
  // },
  // {
  //   path: '/organization/buyerOrganization',
  //   name: 'buyerOrganization',
  //   meta: {
  //     icon: 'icon-renyuanguanli',
  //     title: '采购组织管理',
  //     keepAlive: true,
  //     parentTitle: parentRouter
  //   },
  //   component: () => import('@/modules/organization/views/buyerOrganization.vue')
  // }
]
export default routes
